Structures and pointers
Example 3: Using two structures
Factory database:
struct address {
char street[30];
int number;
};
struct person {
char name[30];
struct address addr;
float salary;
};
struct person factory[90];
Assume that data about factory employees are stored in an array called factory. The task is to print the address of the person who has the best salary.